<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta
    name="viewport"
    content="width=device-width, initial-scale=1.0"
  >
  <title>Document</title>
  <script src="../lib/index.umd.js"></script>
  <link
    rel="stylesheet"
    type="text/css"
    href="../lib/style.css"
  />
  <style>
    #app {
      width: 1200px;
      height: 800px;
    }
  </style>
</head>

<body>
  <div id="app"></div>

  <script>
    const qif = new QifPlayer('app', 1, '172.26.4.29', '8810', 'xx', 1, getEvent)

    function getEvent (eventType, eventContext) {
      switch (eventType) {
        case 200:
          // qif.videoPlay(0, 1, '1771fe767e55493887a4e56441a16b77')
          break
        case 100:
          console.log(eventContext, eventType)
          break
        case 101:
          console.log(eventContext, eventType)
          break
        case 102:
          console.log(eventContext, eventType)
          break
        case 103:
          console.log(eventContext, eventType)
          break
        case 220:
          console.log(eventContext, eventType)
          break
        case 300:
          console.log(eventContext, eventType)
          break

        default:
          break
      }
    }

    qif.splitScreen(15, 5, 3)

  </script>
</body>

</html>